<?php
 


$queue = new queue();
var_dump($queue->add_queue('Job_add_msg', array('a'=>'aaa','b'=>'bbb')));

class queue{

	function __construct($host='127.0.0.1', $port=6379, $pass=''){
		$this->link = new Redis();
		$this->link->pconnect($host,$port);
		$this->link->auth($password);
	}


	function add_queue($key, $val){
		return $this->link->rpush($key,serialize($val));
	}




}